package cc.site.main.bean.dto;

import cc.site.main.bean.TblKind;
import cc.site.main.bean.TblRoom;
import cc.site.main.bean.TblUser;
import com.baomidou.mybatisplus.annotation.*;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.time.LocalDateTime;

/**
 * @CREATE By yangruomao On 2024/4/17 下午1:44
 */
@Data
public class PetDto {
    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty("宠物名（可为空）")
    private String name;

    @ApiModelProperty("房间信息")
    private TblRoom room;

    @ApiModelProperty("种类信息")
    private TblKind kind;

    @ApiModelProperty("寄养人信息")
    private TblUser fosterMan;

    @ApiModelProperty("主人信息，没有为null")
    private TblUser masterMan;

    @ApiModelProperty("详细说明")
    private String descprition;

    @ApiModelProperty("宠物照片")
    private String pic;

    @TableField(fill = FieldFill.INSERT)
    private LocalDateTime gmtCreate;

    @TableField(fill = FieldFill.INSERT_UPDATE)
    private LocalDateTime gmtUpdate;


}
